package command;

/**
 * User: Alexander Martyushov
 * Date: 12/10/12
 * Time: 7:27 AM
 */
public class GarageDoorOpenCommand implements Command {

    GarageDoor garageDoor;

    public GarageDoorOpenCommand(GarageDoor garageDoor){
        this.garageDoor = garageDoor;
    }


    public void execute(){
        garageDoor.open();

    }


    public void undo() {
        garageDoor.close();
    }
}
